package com.gxgeek.rabbitmqspring;

import org.springframework.context.annotation.Configuration;


/**
 * @author gaoxing
 * @create 2018-05-17 下午3:20
 */
@Configuration
public class RabbitMqConfig {
    public static final String QUEUENAME = "hello-spring";
//    @Bean
//    public Queue helloQueue() {
//        return new Queue("hello-spring", true);
//    }
//
//    @Autowired
//    RabbitAdmin rabbitAdmin;

//    @PostConstruct
//    public void init() {
//        Queue queue = new Queue(Constans.orderQueueKey_invail, true);
//        rabbitAdmin.declareQueue(queue);
//        Queue failqueue = new Queue(Constans.orderQueueKey_failure, true);
//        rabbitAdmin.declareQueue(failqueue);
//    }


}
